# -*- coding: utf-8 -*-
# @Time    : 2019/12/24 9:09
# @Author  : Damn7Kx
# @Software: PyCharm
import time, datetime
import os

if __name__ == "__main__":
    count = 0
    while True:
        count += 1
        print(datetime.datetime.now(), 'Time_task5第%s次运行爬虫' % count)
        os.system("scrapy crawl Shenghuoquan")
        os.system("scrapy crawl Tuiku")
        os.system("scrapy crawl Mono")  # 大几率耗时长的新闻网页
        os.system("scrapy crawl Weixiaobao")  # 每日一次
        print("Time Task5进入等待时间...")
        time.sleep(180)